import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login.vue'
import ChatView from '@/views/ChatView.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/chat',
      name: 'Chat',
      component: ChatView
    },
    {
      path: '/user-settings',
      name: 'UserSettings',
      component: () => import('@/views/UserSettings.vue')
    },
    {
      path: '/admin/forbidden-words',
      name: 'ForbiddenWords',
      component: () => import('@/views/ForbiddenWords.vue')
    },
    {
      path: '/user-management',
      name: 'UserManagement',
      component: () => import('@/views/UserManagement.vue')
    }
  ]
})